﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using FazaDemo.ViewModels;
using FazaDemo.PL.ViewModelEntities;

namespace FazaDemo.PL.WebSite.Mvc.Controllers
{
    public class AuthorizationController : Controller
    {

        private readonly IList<DropDownCondition> _roles = new List<DropDownCondition>
        {
            new DropDownCondition {Id = 0, Name = "АДМИНИСТРАТОР"},
            new DropDownCondition {Id = 1, Name = "СБЫТ"},
            new DropDownCondition {Id = 2, Name = "СКУПЭ"},
            new DropDownCondition {Id = 3, Name = "СБЫТ++"},
            new DropDownCondition {Id = 4, Name = "нет"}
        };

        // GET: Authorization
        public ActionResult Login()
        {
            return View(new LoginViewModel
            {
               Roles = new SelectList(_roles,
                    "Id", "Name", 0
                    ), 
            }
            );
        }
    }
}